{% extends "base_student.html" %} 

{% block content %}
    <div class="container">
      <h1>Project List</h1>
      <a href="{{ url_for('project.create') }}" class="btn btn-primary"
        >Create New Project</a
      >
      <ul class="list-group mt-3">
        {% for project in projects %}
        <li class="list-group-item">
          <h5>{{ project.title }}</h5>
          <p>{{ project.description }}</p>
          <a
            href="{{ url_for('project.edit', project_id=project.id) }}"
            class="btn btn-secondary"
            >Edit</a
          >
        </li>
        {% endfor %}
      </ul>
    </div>
{% endblock %}
